package com.wmlt.file;



/**
 * create by huangziqideveloper@gmail.com
 */
public enum FileType {

	/*================ 视频 begin================*/
	/** JPEG */
	JPEG("ffd8ff", "image/jpeg"),

	/** PNG */
	PNG("89504e47", "image/png"),
	PNG2("524946", "image/png"),

	/** GIF */
	GIF("47494638", "image/gif"),

	/** TIFF */
	TIFF("49492A00"),

	/** Windows bitmap */
	BMP("424d",  "image/bmp"),
	/*================ 视频 end ================*/

	/** CAD */
	DWG("41433130"),

	/** Adobe photoshop */
	PSD("38425053"),

	/** Rich Text Format */
	RTF("7b5c727466"),

	/** XML */
	XML("3c3f786d6c"),

	/** HTML */
	HTML("68746d6c3e"),

	/** Outlook Express */
	DBX("cfad12fec5fd746f "),

	/** Outlook */
	PST("2142444e"),

	/** doc;xls;dot;ppt;xla;ppa;pps;pot;msi;sdw;db */
	OLE2("0xd0cf11e0a1b11ae1"),

	/** Microsoft Word/Excel */
	XLS_DOC("d0cf11e0"),

	/** Microsoft Access */
	MDB("5374616e64617264204a"),

	/** Word Perfect */
	WPB("ff575043"),

	/** Postscript */
	EPS_PS("252150532d41646f6265"),

	/** Adobe Acrobat */
	PDF("255044462d312e"),

	/** Windows Password */
	PWL("e3828596"),

	/** ZIP Archive */
	ZIP("504b0304"),

	/** ARAR Archive */
	RAR("52617221"),

	/** WAVE */
	WAV("57415645", "audio/wav"),

	/*================ 视频 begin================*/
	/** MP4 */
	MP4("000000186", "video/mp4"),
	/** MPEG1 */
	MPEG1("000001ba", "video/mpeg"),
	/** MPEG2 */
	MPEG2("000001b3", "video/mpeg"),
	/** AVI */
	AVI("41564920", "video/avi"),
	/** Real Audio */
	RAM("2e7261fd"),

	/** Real Media */
	RM("2e524d46"),

	/** Windows Media */
	ASF("3026b2758e66cf11"),
	/*================ 视频 end================*/


	/** Quicktime */
	MOV("6d6f6f76"),

	/** MIDI */
	MID("4d546864"),



	;
	private String code = "";

	private String value = "";

	private FileType(String code) {
		this.code = code;
	}

	private FileType(String code, String value) {
		this.code = code;
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public String getCode() {
		return code;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
